#ifndef KEYPAD_H
/*
This file is part of "hp-like 4x4 keypad library".

"hp-like 4x4 keypad library" is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

"hp-like 4x4 keypad library" is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with "hp-like 4x4 keypad library".  If not, see <http://www.gnu.org/licenses/>.

Copyleft: kenzanin[at]gmail[dot]com ||suka[dot]isnaini[at]politeknikaceh[dot]ac[dot]id
forum: solderen.tk/forum
*/

#define KEYPAD_H 1

#define KEYPAD_PORT	PORTB
#define MAX_INDEX   4
//! <TODO>
#define  KEYPAD_BUTTON 16

#define KEYPAD_DDR	*(&KEYPAD_PORT-1)
#define KEYPAD_PIN	*(&KEYPAD_PORT-2)

#define KEYPAD_ENTER 		0x0d
#define KEYPAD_BACKSPACE	0x08
void        password_save(void);
void        keypad_init(void);
uint8_t     keypad_read(void);
int16_t     hp_punya_hehe(int8_t _mode);
extern uint8_t tom_hp;
#endif
